package com.cucn.ingmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cucn.common.utils.PageUtils;
import com.cucn.ingmall.ware.entity.PurchaseEntity;
import com.cucn.ingmall.ware.vo.PurchaseDoneVO;
import com.cucn.ingmall.ware.vo.PurchaseMergeVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author kouchaojie
 * @email kou1688@foxmail.com
 * @date 2021-11-17 18:35:22
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     *
     * @param params 请求参数
     * @return 查询出的带分页的数据
     */
    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    /**
     * 采购需求合并到采购单
     *
     * @param purchaseMergeVO 合并采购需求VO对象
     */
    void mergePurchase(PurchaseMergeVO purchaseMergeVO);

    /**
     * 采购人员领取采购单
     *
     * @param purchaseIds 采购单id集合
     */
    void received(List<Long> purchaseIds);

    /**
     * 采购人员完成采购单
     *
     * @param doneVO 完成采购单vo对象
     */
    void done(PurchaseDoneVO doneVO);
}

